<?php
/**
 * Eren Framework
 * 
 * The Version
 * 
 * @category System
 * @author Manu Soros Leu
 * @copyright manusoros@gmail.com
 */

final class Eren_Version
{
    /**
     * Return the current Eren Framework Version
     * 
     * @return string
     */
    public static function getVersion()
    {
        return Eren_Config::$Verson;
    }
    
    /**
     * Compare the specified Eren Framework version string $version
     * with the current version of Eren Framework
     *
     * @param string $version specified version 
     * @return boolean  -1 if the $version is older,0 if they are the same,and +1 if $version is newer.
     *
     */
    public static function compareVersion($version)
    {
        return version_compare($version, Eren_Config::$Verson);
    }
}